<form class="form-horizontal">
	<div {{bind-attr class=":alert formTip::hide"}}><strong>{{formTip}}</strong></div>
	<div {{bind-attr class=":alert saveResult::hide"}}><strong>{{saveResult}}</strong></div>
	<div class="container config-history-container">

		<!-- <h2 class="panel-title">当前磁盘容量及使用量<span class="f-green">(单位:G)</span></h2>

		<div class="config-chart-panel">
			<div class="config-history-volume">
				<table class="conf-bar-tab">
					{{#if diskDataGroupArr}}
					{{#each diskDataGroupArr as |diskData|}}
						<tr>
							{{#each diskData as |diskItem|}}
							<td class="config-bar-td">
								{{view view.DiskBarChart
								class="config-history-bar"
								data=diskItem}}
							</td>
							{{/each}}
						</tr>
					{{/each}}
					{{/if}}
				</table>	
			</div>
		</div> -->
		<div class="control-group config-history-months">
			<label class="control-label">保留期限:</label>
			<div class="controls">
				{{input class="input u-input-blue" value=form.cleanTime}} &nbsp;
				(月)&nbsp;*超过此保留期限将自动清理
			</div>
		</div>
		<div class="control-group config-history-save">
			<div class="controls">
				<button class="u-btn-blue fl" {{action "save"}}>保存</button>
				<button class="u-btn-blue fl" {{action "cleanData"}}>立即清除数据</button>
			</div>
		</div>
	</div>
</form>

{{#view view.Dialog
    id="clean_history"
    title="清除历史数据"
    class="hide common-popUp"
    width=500
    height=620
    resizable=false
    autoOpen=false
	modal=true}}

	<div {{bind-attr class="showImg:hide"}}>
		<div {{bind-attr class=":alert alertType cleanHistoryTip::hide"}}><strong>{{cleanHistoryTip}}</strong></div>
		<div class="control-group">
			清除以下业务系统历史数据：
		</div>

		{{view view.parentView.Grid
			class="history-grid"
			columns=gridColumns
			content=gridDataSource}}

		<div class="control-group mt20">
			<label class="config-history-dialog-time-lebel">保留最近
				{{input class="input span1 u-input-blue" value=form.myCleanTime}}月的数据
			</label>
			
		</div>

		<div class="group-options history-options">
			<button type="submit" {{action "cleanHistory"}} class="u-btn-blue">确定</button>
			<button type="button" {{action "closeDialog"}} class="u-btn-blue">取消</button>
		</div>

	</div>

    <div {{bind-attr class="showImg::hide"}}>
		<img class="progressBar" src="../web/apps/config/img/progress.gif" alt="进度条">
	</div>
{{/view}}